/**
 * Copyright (C), 2015-2021, XXX有限公司
 * FileName: XjfWorkOrderEntryController
 * Author:   Administrator
 * Date:     2021/8/10 0010 18:38
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package cn.hxlc.tie.demo.modular.jf.controller;

import cn.hxlc.tie.demo.modular.jf.model.params.XjfWorkOrderEntryParam;
import cn.hxlc.tie.demo.modular.jf.model.result.XjfWorkOrderEntryResult;
import cn.hxlc.tie.demo.modular.jf.service.XjfWorkOrderEntryService;
import cn.hxlc.tie.demo.modular.jf.service.XjfWorkOrderService;
import cn.hxlc.tie.libs.scanner.annotation.GetResource;
import cn.hxlc.tie.libs.scanner.stereotype.ApiResource;
import cn.hxlc.tie.model.web.response.ResponseData;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.web.bind.annotation.RestController;

/**
 * 〈一句话功能简述〉<br> 
 * 〈〉
 *
 * @author Administrator
 * @create 2021/8/10 0010
 * @since 1.0.0
 */
@RestController
@ApiResource(name = "生产订单分录_jf", path = "/xuWorkOrderEntry")
public class XjfWorkOrderEntryController {
        @Autowired
    private XjfWorkOrderEntryService xjfWorkOrderEntryService;

    @GetResource(name = "查询分录", path = "/queryEntryDetail", requiredLogin=true, requiredPermission = false)
    @ApiOperation(value = "查询分录", response = XjfWorkOrderEntryResult.class)
    public ResponseData queryEntryDetail(Long fid) {

        return ResponseData.success(xjfWorkOrderEntryService.queryEntry(fid));
    }



    @GetResource(name = "分页查询分录", path = "/queryXdEntryListPage", requiredLogin=true, requiredPermission = false)
    @ApiOperation(value = "分页查询分录", response = XjfWorkOrderEntryResult.class)
    public ResponseData queryXdEntryListPage(XjfWorkOrderEntryParam param) {

        return ResponseData.success(xjfWorkOrderEntryService.queryXdEntryListPage(param));
    }

    @GetResource(name = "分页查询分录", path = "/queryInstoreEntryListPage", requiredLogin=true, requiredPermission = false)
    @ApiOperation(value = "分页查询分录", response = XjfWorkOrderEntryResult.class)
    public ResponseData queryInstoreEntryListPage(XjfWorkOrderEntryParam param) {

        return ResponseData.success(xjfWorkOrderEntryService.queryInstoreEntryListPage(param));
    }
}
